package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CategorySecondLevelMapper;
import com.hcb.micro.dto.CategorySecondLevel;
import com.hcb.micro.service.ICategorySecondLevelService;

@Service("CategorySecondLevelService")
public class CategorySecondLevelImpl implements ICategorySecondLevelService {

	@Autowired
	CategorySecondLevelMapper CategorySecondLevelMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return CategorySecondLevelMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CategorySecondLevel record) {
		return CategorySecondLevelMapper.insert(record);
	}

	@Override
	public int insertSelective(CategorySecondLevel record) {
		return CategorySecondLevelMapper.insertSelective(record);
	}

	@Override
	public CategorySecondLevel selectByPrimaryKey(Integer id) {
		return CategorySecondLevelMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CategorySecondLevel record) {
		return CategorySecondLevelMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CategorySecondLevel record) {
		return CategorySecondLevelMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<CategorySecondLevel> selectByCategoryId(Integer categoryId) {
		return CategorySecondLevelMapper.selectByCategoryId(categoryId);
	}

	@Override
	public List<CategorySecondLevel> selectByPara(Map<String, Object> para) {
		return CategorySecondLevelMapper.selectByPara(para);
	}

}
